projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7177df7
)
x86: Another assign_irq_vector() cleanup.
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 23 Jun 2009 10:11:46 +0000
(11:11 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 23 Jun 2009 10:11:46 +0000
(11:11 +0100)
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
xen/arch/x86/irq.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/irq.c
b/xen/arch/x86/irq.c
index 42e2b9d0eaf377c98b7e5e707b0a8c54e185f8e7..b0591c1827bc5653c6909586697d648c4e40ddd8 100644
(file)
--- a/
xen/arch/x86/irq.c
+++ b/
xen/arch/x86/irq.c
@@
-84,15
+84,9
@@
int assign_irq_vector(int irq)
spin_lock(&vector_lock);
- if ((irq != AUTO_ASSIGN_IRQ) && !IO_APIC_IRQ(irq))
- {
- spin_unlock(&vector_lock);
- return LEGACY_VECTOR(irq);
- }
-
- if ((irq != AUTO_ASSIGN_IRQ) && (IO_APIC_VECTOR(irq) > 0)) {
+ if ((irq != AUTO_ASSIGN_IRQ) && (irq_to_vector(irq) > 0)) {
spin_unlock(&vector_lock);
- return
IO_APIC_VECTOR
(irq);
+ return
irq_to_vector
(irq);
}
vector = current_vector;